<!--
 * @Description: 
 * @Author: 李成
 * @CreateTime: 2025-02-27 16:49:38
 * @LastEditors: 李成
 * @UpdateTime: 2025-02-27 16:49:38
-->
<template>
  <div class="vue-app">
    <button @click="handleClick">跳转到home页面</button>
    <button @click="handleClick2">跳转到about页面</button>
    <RouterView />
  </div>
</template>

<script lang='ts' setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const handleClick = () => {
    router.push('/home')
}
const handleClick2 = () => {
    router.push('/about') 
}
</script>

<style lang="scss" scoped>

.vue-app{
  background-color: rgba(0,255,0,.5);
}
</style>